while read id
do
	file=$(echo $id | cut -d" " -f 1)
	sample=$(echo $id | cut -d" " -f 2)
	echo ${sample}
	## TPM
	awk '{print$4}' ${file} >tmp_${sample}.tpm
	gsed -i "s#TPM#S_${sample}#g" tmp_${sample}.tpm
	## NumReads
	awk '{print$5}' ${file} >tmp_${sample}.read
	gsed -i "#NumReads#S_${sample}" tmp_${sample}.read
done<$1
## GeneID
paste geneid *.tpm > tpm.xls
paste geneid *.read > readcount.xls

rm tmp*
